package com.youdianda.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youdianda.entity.YddCate;
import com.youdianda.vo.BaseInfoAllCateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mosen
 * @since 2023-05-15
 */
@Mapper
public interface YddCateMapper extends BaseMapper<YddCate> {

    @Select("select count(*) from ydd_cate")
    Integer getCateCount();

    @Select("select id,catename from ydd_cate")
    List<BaseInfoAllCateVO> getBaseInfoAllCateVo();
}
